//index.js
//获取应用实例
const app = getApp()
Page({
  data: {
    isScroll: 'hidden',
    pagedisplay: 'none',
    arry: [
      { src: "img/classification_icon.png", text: "分类" },
      { src: "img/classification_icon.png", text: "费用" },
    ],
    items: [
      {
        src: "img/picture_icon1.png",
        text: "[月赛] 好消息！期间，福建将实行普通高中免费教育！",
        money: "5",
        num: "1000",
        time: "12-12  09:00 至 12-12  09:00"
      },
      {
        src: "img/picture_icon2.png",
        text: "[月赛] 好消息！期间",
        money: "55",
        num: "1000",
        time: "12-12  09:00 至 12-12  09:00"
      },
      {
        src: "img/picture_icon2.png",
        text: "[月赛] 好消息！期间",
        money: "60",
        num: "1000",
        time: "12-12  09:00 至 12-12  09:00"
      },
      {
        src: "img/picture_icon2.png",
        text: "[月赛] 好消息！期间",
        money: "10",
        num: "1000",
        time: "12-12  09:00 至 12-12  09:00"
      },
      {
        src: "img/picture_icon2.png",
        text: "[月赛] 好消息！期间",
        money: "10",
        num: "1000",
        time: "12-12  09:00 至 12-12  09:00"
      },
    ],
  },
  //事件处理函数
  bindNav: function () {
    console.log('222')
    var bgColor = this.data.pagedisplay == 'block' ? 'none' : 'block';
    isDialogShow: false;
    isScroll: true;
    var bghidden = this.data.pageoverflow == 'hidden' ? 'scroll' : 'hidden';
    // 设置背景颜色数据
    this.setData({
      pagedisplay: bgColor,
      isScroll: bghidden
    });
  },
  bindActivity: function() {
    wx.navigateTo({
      url: '../index_activity/index'
    })
  }
})
